package com.ljy.tkmodel.service;

import com.ljy.tkmodel.entity.LjyZhuanshuoChapter;
import com.ljy.tkmodel.entity.LjyZhuanshuoQuestion;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ljy.tkmodel.entity.vo.LjyEasyZhuanshuoChapterVO;

import javax.servlet.http.HttpSession;
import java.util.ArrayList;
import java.util.concurrent.ExecutionException;

/**
 * <p>
 * 专硕题库 服务类
 * </p>
 *
 * @author testjava
 * @since 2022-01-04
 */
public interface LjyZhuanshuoQuestionService extends IService<LjyZhuanshuoQuestion> {
    //查询全部题 按学科章节整合
    ArrayList<LjyZhuanshuoChapter> getTKChapterAll(HttpSession session);
    //查询所有题逻辑查询组装
    ArrayList<LjyZhuanshuoQuestion> getTKQuestionAll(HttpSession session);
    //用户的全部答题记录
    ArrayList<LjyZhuanshuoChapter> getHomeAll(Integer userId);
    //根据sql语句快查学科章节
    ArrayList<LjyEasyZhuanshuoChapterVO> getEasyChapterAll();
    //查询全部题 简单查询用于测试
    ArrayList<LjyZhuanshuoQuestion> getQuestionAll();
    //只查学科章节
    ArrayList<LjyZhuanshuoChapter> getChapterAll();
    //模拟用户查看章节下的题
    ArrayList<LjyZhuanshuoQuestion> getUserChapterTOQuestion();

    //异步优化查询章节
    ArrayList<LjyZhuanshuoChapter> AsyncQueryChapter();

    //异步优化查询题
    ArrayList<LjyZhuanshuoQuestion> AsyncQueryQuestion(LjyZhuanshuoChapter chapter) throws ExecutionException, InterruptedException;
}
